package com.ulic.customerManApplication.usermodule.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.ulic.customerManApplication.usermodule.bo.Adminitrator;
import com.ulic.customerManApplication.usermodule.dao.AdminitratorDao;
import com.ulic.customerManApplication.usermodule.service.AdminitratorService;

@Component("adminitratorService")
public class AdminitratorServiceImpl implements AdminitratorService{

	
	private AdminitratorDao adminitratorDao;
	

	@Resource
	public void setAdminitratorDao(AdminitratorDao adminitratorDao) {
		this.adminitratorDao = adminitratorDao;
	}


	/**
	 * Description: 验证超级管理员登陆
	 * @Version1.0 
	 * 2012-7-10 下午06:00:10 李求智 (liqz@huilan.com) created
	 * @param username
	 * @param password
	 * @return
	 * @throws Exception
	 */
	@Override
	public Adminitrator findUserByPwd(String username, String password)
			throws Exception {
		return adminitratorDao.findAdminByPwd(username, password);
	}

}
